function getCheckedNum(checkboxName) {
	var checkbox = document.getElementsByName(checkboxName);
	var num = 0;
	var count = checkbox.length;
	for (var i = 0; i < count; i++) {
		if (checkbox[i].checked) {
			num++;
		}
	}
	return num;
}

function getFileSuffix(fileName){
	var suffix = '';
	var array = fileName.split('.');
	if(array!=null&&array.length>0){
		suffix = array[array.length-1];
	}
	return suffix;
}

//限文本框内字数，textareaId为文本的ID，numId为提示字数的ID，lenNum为限止的长度
function HowLen(textareaId,numId,lenNum){
    var len; 
    len=lenNum-$("#"+textareaId).val().length; 
    if(len<0){
     len=0;}
    $("#"+numId).val(len);
      if(len<1){
      $("#"+textareaId).val($("#"+textareaId).val().substring(0,lenNum));
    }
}
function showDivProcessing(){
	 var str ='';
	 str += '<table border=0 cellpadding=0 cellspacing=1 bgcolor="#000000" width="100%" height="100%"> ';
	 str += '<tr>';
	 str += '<td bgcolor=#E6E8E8>';
	 str += '<marquee align="middle" behavior="alternate" scrollamount="5">';
	 str += '<font color="black">...正在接收数据...请稍候...</font>';
	 str += '</marquee>';
	 str += '</td>';
	 str += '</tr>';
	 str += '</table>';
	 dialog("","text:"+str,"300px","auto","floatPoint");
	}
function closeFloatBoxBg(){
	 $("#floatBoxBg").hide();
	  $("#floatBox").hide();
//	  $("#floatBoxBg").animate({opacity:"0"},"normal",function(){$(this).hide();});
//	  $("#floatBox").animate({top:($(document).scrollTop()-300)+"px"},"normal",function(){$(this).hide();}); 
}